﻿namespace Smugmug
{
    public class LoginAnonymously : ILoginMethod
    {
        public LoginAnonymously(string apiKey)
        {
            Require.NotNullOrEmpty(apiKey, "apiKey");
            ApiKey = apiKey;
        }

        public string ApiKey { get; private set; }

        public Login Login(SmugmugClient client)
        {
            return client.LoginAnonymously(ApiKey, null, null, null);
        }
    }
}